package com.baichang.taoshunda.service;





import com.baichang.framework.excelption.ServiceException;
import com.baichang.taoshunda.entity.EasemobModel;
import com.baichang.taoshunda.entity.HxModel;
import com.baichang.taoshunda.entity.em.UserType;

import java.text.ParseException;
import java.util.Map;

/**
 * 环信Service接口
 * Created by Dylan on 2015/12/9.
 */
public interface EasemobService {

    /**
     * 环信调用登录
     *
     * @param userName
     * @param passWord
     * @param userType
     * @return
     */
    Map<String, Object> login(String userName, String passWord, Integer userType) throws ServiceException;

    HxModel login2(String userName, String passWord, Integer userType) throws ServiceException;

    /**
     * 注册环信
     *
     * @param id
     * @param userType
     * @param photo
     * @param name
     * @return
     */
    boolean register(Object id, UserType userType, String photo, String name);

    /**
     * 获取用户信息
     *
     * @param userId
     * @param userType
     * @return
     */
    EasemobModel getUser(Object userId, UserType userType) throws ParseException;

    /**
     * 修改用户信息
     *
     * @param easemobModel
     * @return
     */
    boolean update(EasemobModel easemobModel);

    /**
     * 删除环信用户信息
     *
     * @param kid
     * @return
     */
    boolean delete(String kid);


}
